#pragma once
#include "GraphicLibrary.h"
#include "GdiPlus.h"
#pragma comment (lib,"Gdiplus.lib")
using namespace Gdiplus;

class GDILibrary : public IGraphicLibrary
{
private:
	HWND _handle;
public:
	IGraphicLibrary* Clone();
	void DrawLine(int x1, int y1, int x2, int y2, COLORREF color, int strokewidth);
	void DrawRectangle(int x, int y, int width, int height, COLORREF color, int strokewidth, COLORREF fill);
	void DrawEllipse(int cx, int cy, int rx, int ry, COLORREF color, int strokewidth, COLORREF fill);
	GDILibrary(HWND winHandle);
	virtual ~GDILibrary(void);
};

